import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import login from '@/components/login'
import jinweibo from '@/components/jinweibo'
import weibologin from "@/components/weibologin"
import binduser from "@/components/binduser";
import register from "@/components/register"; 
import huiyuanlist from "@/components/huiyuanlist";
import tushulist from "@/components/tushulist";
import shanglogin from "@/components/shanglogin";
import CartList from "@/components/CartList";
import index from "@/components/index";
import addcate from "@/components/addcate";

Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: "/",
      name: "HelloWorld",
      component: HelloWorld
    },
    {
      path: "/login",
      name: "login",
      component: login
    },
    {
      path: "/jinweibo",
      name: "jinweibo",
      component: jinweibo
    },
    {
      path: "/weibologin",
      name: "weibologin",
      component: weibologin
    },
    {
      path: "/bind",
      name: "binduser",
      component: binduser
    },
    {
      path: "/register",
      name: "register",
      component: register
    },
    {
      path: "/huiyuanlist",
      name: "huiyuanlist",
      component: huiyuanlist
    },
    {
      path: "/tushulist",
      name: "tushulist",
      component: tushulist
    },
    {
      path: "/shanglogin",
      name: "shanglogin",
      component: shanglogin
    },
    {
      path: "/cartlist",
      name: "CartList",
      component: CartList
    },
    {
      path: "/index",
      name: "index",
      component: index
    },
    {
      path: "/addcate",
      name: "addcate",
      component: addcate
    }
  ]
});
